/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.edu.fanor.sessionbeans;

import br.edu.fanor.entidades.Ator;
import javax.annotation.security.RolesAllowed;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Stateless
@RolesAllowed({"ADMIN", "USERS"})
public class AtorBean extends AbstractFacade<Ator>{
    
    @PersistenceContext(unitName = "LocadoraVideoWebPU")
    private EntityManager manager;

    @Override
    protected EntityManager getEntityManager() {
        return manager;
    }
    
    public AtorBean(){
        super(Ator.class);
    }
    
}
